//Layout相关配置的仓库
import { defineStore } from 'pinia'
import { reactive } from 'vue'
import type { LayoutSettingState } from './types/type'

const useLayoutSettingStore = defineStore('LayoutSetting', {
  state: (): LayoutSettingState => {
    return {
      fold: false, //用于控制Layout菜单是否收起
      editableTabs: reactive([
        {
          title: '首页',
          name: '1',
          path: '/home',
        },
      ]), //tab标签数组
      editableTabsValue: '1', //指定激活的tab标签
      refsh: false, //用与控制layout的刷新按钮
    }
  },
})

export default useLayoutSettingStore
